package com.doit.day01;

import java.util.Iterator;

public class MyIterable implements Iterable<Hero>{
    @Override
    public Iterator<Hero> iterator() {
        try {
            return new MyIterator();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
